package ${package};

import br.com.me.ceap.dynamic.extension.document.validator.ConstraintValidator;

import javax.validation.ConstraintValidatorContext;

public class RequiredFieldValidation implements ConstraintValidator<Object> {

    public boolean isValid(Object value, ConstraintValidatorContext context) {
        return !((value == null) || (value.toString().trim().isEmpty()));

    }
}